package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {

        Student ll =new Student();
        ll.name = "李林";
        ll.age = 18;
        ll.address = "北京";
        ll.stuId = "001";
        ll.className = "jsd2408";
        ll.sayHi();
        ll.study();
        ll.eat();
        ll.sleep();
        System.out.println("================================");

        Teacher zg = new Teacher( "张光", 30, "北京", 5000);
        zg.sayHi();
        zg.teach();
        zg.eat();
        zg.sleep();
        System.out.println("================================");

        Doctor wpf = new Doctor( "王鹏飞", 40, "上海", "主任");
        wpf.sayHi();
        wpf.cut();
        wpf.eat();
        wpf.sleep();
    }
}
